package com.cty._02_HighQualityCode._21_ReorderArray;

/**
 * @Auther: cty
 * @Date: 2020/7/8 8:39
 * @Description: 判断条件接口
 * @version: 1.0
 */
public interface Judgement {

    boolean judge(int number);

}  // end interface

class IsOdd implements Judgement {

    @Override
    public boolean judge(int number) {
        return number % 2 == 1;
    }
}  // end class

class IsNegative implements Judgement {

    @Override
    public boolean judge(int number) {
        return number < 0;
    }
}  // end class
